package org.cadenhead.ecommerce;

import java.util.*;

public class Storefront {
	private LinkedList cataLog=new LinkedList();
	
	public void addItem (String id,String name,String price,String quant)
	{
		Item it=new Item(id,name,price,quant);
		cataLog.add(it);
		
	}
	public Item getItem(int i)
	{
		return (Item)cataLog.get(i);
	}
	public int getSize()
	{
		return cataLog.size();
	}
	public void sort()
	{
		Collections.sort(cataLog);
	}
	
  
}
